package com.risen.common.core.handler;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

import java.util.ArrayList;
import java.util.List;

/**
 * 多租户配置
 *
 * @author risen
 */
@Getter
@Setter
@ConfigurationProperties(prefix = "risen.tenant")
public class TenantProperties {


	/**
	 * 多租户字段名称
	 */
	private String column = "tenant_id";

	/**
	 * 需要排除进行自定义的多租户表
	 */
	private List<String> excludeTables = new ArrayList<>();

}
